/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package consys.social.nosql.service.hbase;

import org.apache.commons.lang.StringUtils;

/**
 *
 * @author petan
 */
public class HBaseUtils {

    public static String[] splitFamilyAndCol(String split) {
        String[] colFamiliesAndColumns = StringUtils.split(split, ':');
        if (colFamiliesAndColumns.length != 2) {
            throw new IllegalArgumentException("Invalid key identifier");
        }
        return colFamiliesAndColumns;
    }
}
